package com.jprocms.module.cms.controller.admin.imgblock.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 飘窗板块新增/修改 Request VO")
@Data
public class ImgblockSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1455")
    private Long id;

    @Schema(description = "所属站点", requiredMode = Schema.RequiredMode.REQUIRED, example = "31777")
    private Long siteId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "jprocms")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "区块标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "区块标识不能为空")
    private String imgblockCode;

    @Schema(description = "图片宽像素")
    private Integer imgWidth;

    @Schema(description = "图片高像素")
    private Integer imgHeight;

    @Schema(description = "开始生效时间")
    private LocalDateTime activetimeBegin;

    @Schema(description = "结束生效时间")
    private LocalDateTime activetimeEnd;

    @Schema(description = "生效位置(1首页  2栏目页面 )")
    @NotNull(message = "生效位置不能为空")
    private Integer activePos;

    @Schema(description = "生效位置-栏目id", example = "21852")
    private Long activeChannelId;

    @Schema(description = "状态（1正常 0停用）")
    private Boolean status;
}